Loop Quasi-Invariance Code Motion
نویسندگان
چکیده
Loop optimization plays an important role in compiler optimization and program transformation. Many sophisticated techniques such as loop-invariance code motion, loop restructuring and loop fusion have been developed. This paper introduces a novel technique called loop quasi-invariance code motion. It is a generalization of standard loop-invariance code motion, but based on loop quasi-invariance analysis. Loop quasiinvariance is similar to standard loop-invariance but allows for a finite number of iterations before computations in a loop become invariant. In this paper we define the notion of loop quasiinvariance, present an algorithm for statically computing the optimal unfolding length in While-programs and give a transformation method. Our method can increase the accuracy of program analyses and improve the efficiency of programs by making loops smaller and faster. Our technique is well-suited as supporting transformation in compilers, partial evaluators, and other program transformers. key words: loop quasi-invariance, code motion, program optimization, partial evaluation
منابع مشابه
A Loop Optimization Technique Based on Quasi- Invariance
Loop optimization plays an important role in compiler optimization and program transformation. Many sophisticated techniques such as loopinvariance code motion, loop restructuring and loop fusion have been developed. This paper introduces a novel technique called loop quasi-invariance code motion. It is a generalization of standard loopinvariance code motion, but based on loop quasiinvariance a...
متن کاملImperative-program transformation by instrumented-interpreter specialization
We describe how to implement strength reduction, loop-invariant code motion and loop quasi-invariant code motion by specializing instrumented interpreters. To curb code duplication intrinsic to such specialization, we introduce a new program transformation, rewinding , which uses Moore-automata minimization to remove duplicated code.
متن کاملQuasi-invariance for the pinned Brownian motion on a Lie group
We give a new proof of the well-known fact that the pinned Wiener measure on a Lie group is quasi-invariant under right multiplication by 1nite energy paths. The main technique we use is the time reversal. This approach is di3erent from what B. Driver used to prove quasi-invariance for the pinned Brownian motion on a compact Riemannian manifold. c © 2002 Elsevier Science B.V. All rights reserved.
متن کاملAn Unfolding-Based Loop Optimization Technique
Loops in programs are the source of many optimizations for improving program performance, particularly on modern high-performance architectures as well as vector and multithreaded systems. Techniques such as loop invariant code motion, loop unrolling and loop peeling have demonstrated their utility in compiler optimizations. However, many of these techniques can only be used in very limited cas...
متن کاملBehavior of $R$-groups for $p$-adic inner forms of quasi-split special unitary groups
We study $R$-groups for $p$-adic inner forms of quasi-split special unitary groups. We prove Arthur's conjecture, the isomorphism between the Knapp-Stein $R$-group and the Langlands-Arthur $R$-group, for quasi-split special unitary groups and their inner forms. Furthermore, we investigate the invariance of the Knapp-Stein $R$-group within $L$-packets and between inner forms. This w...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2000